﻿using System;
using System.Collections.Generic;
using Qadir.MVC.Streamline;

namespace QadirMVCStreamlineConsoleSample
{
    public class ProgramFlow : Streamline
    {

        int Flow(Streamline streamLine, object[] arguments = null)
        {
            Console.Title = "Qadir Streamlining Sample";
            AddViewRange(new Type[]
                {
                    typeof(Chooser),
                    typeof(Option1),
                    typeof(Option2)
                });
            ShowView("Chooser", new Dictionary<string, object>());
            return 0;
        }

        public override int StreamlineMain(object[] arguments = null)
        {
            RunTimeline(Flow);
            Console.WriteLine("Done.");
            Console.ReadLine();
            return 0;
        }
    }
}
